package com.zut.chat.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户消息频率记录实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("user_message_rate")
public class UserMessageRate {
    
    @Id(keyType = KeyType.Auto)
    private Long id;
    
    /**
     * 用户会话ID
     */
    private String sessionId;
    
    /**
     * 当前分钟消息数
     */
    private Integer messageCountMinute;
    
    /**
     * 当前小时消息数
     */
    private Integer messageCountHour;
    
    /**
     * 最后消息时间
     */
    private LocalDateTime lastMessageTime;
    
    /**
     * 当前分钟时间戳
     */
    private Long currentMinute;
    
    /**
     * 当前小时时间戳
     */
    private Long currentHour;
    
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
} 